package com.example.spring_secutity.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zz
 * @since 2024-06-29
 */
@Controller
@RequestMapping("/user")
public class UserController {
    @RequestMapping("/toMain")
    public String toMain() {
        return "main";
    }

    @RequestMapping("/list")
    @ResponseBody
    public String list(){
        return "用户列表";
    }


    @RequestMapping("/add")
    @ResponseBody
    public String add(){
        return "add";
    }


    @RequestMapping("/update")
    @ResponseBody
    public String update(){
        return "update";
    }


    @RequestMapping("/del")
    @ResponseBody
    public String del(){
        return "del";
    }
}
